package BD;

import java.util.ArrayList;

import ClasesBase.Fila;

public class Prueba {
	public static void main(String[]args) throws Exception{
		BDDeclaration ibaimola = new BDDeclaration();
		ibaimola.init();
		/*System.out.println(ibaimola.comprobarMonedas(1));
		System.out.println(ibaimola.comprobarDineroTotal(1));
		System.out.println(ibaimola.comprobarUltimaRecarga(1, 2));
		System.out.println(ibaimola.comprobarCantidadFila(1, 3));
		ibaimola.vaciarFila(1, 3);		
		System.out.println(ibaimola.comprobarCantidadFila(1, 3));
		ArrayList<Fila> f = ibaimola.obtenerFilasMaquina(1);
		for (int i=0; i<f.size(); i++){
			System.out.println(f.get(i).getCantidadMaxima());
		}
		ibaimola.cambiarFechaUltimaRecarga(1, 1, "24/10/2012");
		System.out.println(ibaimola.comprobarUltimaRecarga(1, 1));
		ArrayList<Integer> ids = new ArrayList();
		ids = ibaimola.obtenerIDMaquinas();
		for(int i=0; i<ids.size(); i++){
			System.out.println(ids.get(i));
		}
		ArrayList<Fila> fp = new ArrayList();
		fp = ibaimola.obtenerFilasMaquina(1);
		System.out.println(fp.size());
		System.out.println(ibaimola.comprobarCantidadFila(1, 1));
		ibaimola.cambiarCantidad(1, 1, 3);
		System.out.println(ibaimola.comprobarCantidadFila(1, 1));
		System.out.println(ibaimola.comprobarMonedas(1));
		ibaimola.actualizarMonedas(1, 3, 4, 5, 6, 7, 8);
		System.out.println(ibaimola.comprobarMonedas(1));*/
		ibaimola.end();
	}
}
